package com.atguigu.gmall2023sugar.service;

import com.atguigu.gmall2023sugar.bean.C3;
import com.atguigu.gmall2023sugar.bean.OrderAndRefund;
import com.atguigu.gmall2023sugar.bean.Province;
import com.atguigu.gmall2023sugar.bean.Tm;
import com.atguigu.gmall2023sugar.mapper.TradeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author lzc
 * @Date 2023/7/18 10:38
 */
@Service
public class TradeServiceImpl implements TradeService{
    
    @Autowired
    TradeMapper tradeMapper;
    @Override
    public BigDecimal gmv(String date) {
        return tradeMapper.gmv(date);
    }
    
    @Override
    public List<Tm> gmvByTm(String date, int top) {
        return tradeMapper.gmvByTm(date, top);
    }
    
    @Override
    public List<C3> gmvByC3(String date, int top) {
        return tradeMapper.gmvByC3(date, top);
    }
    
    @Override
    public List<Province> province(String date) {
        return tradeMapper.province(date);
    }
    
    @Override
    public List<OrderAndRefund> orderAndRefund(String date) {
        return tradeMapper.orderAndRefund(date);
    }
    
}
